package com.common.springbootcommonmessage.config;

import org.apache.ibatis.datasource.pooled.PooledDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author korol *
 * @date 2022年12月01日 9:58
 */
@Configuration
@ComponentScan(basePackages = {"com.common.springbootcommonmessage.service","com.common.springbootcommonmessage.utils"})
@MapperScan("com.common.springbootcommonmessage.mapper")
public class MessageConfig {
//    @Bean
//    public PooledDataSource dataSource() {
//        PooledDataSource dataSource = new PooledDataSource();
//        dataSource.setDriver("com.mysql.jdbc.Driver");
//        dataSource.setUrl("jdbc:mysql://172.24.200.30:3306/autopartsprime?useUnicode=true&characterEncoding=UTF-8");
//        dataSource.setUsername("root");
//        dataSource.setPassword("Autobest@2019");
//        return dataSource;
//    }
}
